<?php
 
  $connect = mysql_connect("localhost","Cujo","Godmadethismess");
  mysql_select_db("saveurpet");
 
  $username=$_POST["usuario"];
  $query=mysql_query("SELECT * from user where username='$username' ");
 
  $find=mysql_num_rows($query);
 
  echo $find;
  mysql_close($connect);
 
?>